package com.example.e_learn.Entity;

import java.io.Serializable;
import java.util.Arrays;

/**
 * 单词的实体类
 */
public class Word implements Serializable {
    private String english;
    private String chinese;

    public Word() {

    }

    public Word(String english, String chinese) {
        this.english = english;
        this.chinese = chinese;
    }

    public String getEnglish() {
        return english;
    }

    public void setEnglish(String english) {
        this.english = english;
    }

    public String getChinese() {
        return chinese;
    }

    public void setChinese(String chinese) {
        this.chinese = chinese;
    }

    @Override
    public String toString() {
        return "Word{" +
                "english='" + english + '\'' +
                ", chinese='" + chinese + '\'' +
                '}';
    }

    //    @Override
//    public String toString() {
//        return "WordList{" +
//                "english='" + english + '\'' +
//                ", chinese=" + Arrays.toString(chinese) +
//                '}';
//    }
}
